<template>
	<view class="content">
		<view class="goods-list-box">
			<view class="goods-item-box" v-for="(item,index) in getDataList" @click="goGoodsDetails(item.product_id)" :key="item.product_id">
				<image :src="item.image" mode=""></image>
				<view class="goods-info-box">
					<text class="ellipsis">{{item.store_name}}</text>
					<!-- <text>¥{{item.price}}</text> -->
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			getDataList:{
				type: Array,
				default() {
					return [];
				}
			},
			
		},
		data(){
			return {

			}
		},
		created() {
			
		},
		methods:{
			goGoodsDetails(goodsId){
				this.$emit('goGoodsDetails',goodsId);
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		padding-top: 100rpx;
		width: 100%;
		box-sizing: border-box;
		font-family: Microsoft YaHei;
		color: #333333;
		.goods-list-box{
			padding: 20rpx;
			display: flex;justify-content: space-between; flex-wrap: wrap;
			.goods-item-box{
				padding: 20rpx 0;padding-top: 0;
				line-height: 0;
				image{width: 344rpx;height: 344rpx;border-radius: 10rpx;}
				margin-bottom: 20rpx;
				.goods-info-box{
					display: flex; flex-direction: column;
					line-height: normal;
					padding-top: 20rpx;
					font-size: 28rpx;
					font-weight: bold;
					color: #333333;
					text:first-child{margin-bottom: 10rpx;max-width: 340rpx;}
				}
			}
		}
	}
</style>